import request from '@/utils/request'

// 查询当前客户数量
export function selCustomerCount(data) {
  return request({
    url: '/sale/customer/selCustomerCount',
    method: 'post',
    data: data
  })
}

// 客户来源分析
export function selCustomerSourceCount(data) {
  return request({
    url: '/sale/customer/selCustomerSourceCount',
    method: 'post',
    data: data
  })
}

// 查询有效商机数量
export function selBusCount(data) {
  return request({
    url: '/crm/business/selBusCount',
    method: 'post',
    data: data
  })
}

// 查询已签合同金额
export function selContractCount(data) {
  return request({
    url: '/crm/contract/selContractCount',
    method: 'post',
    data: data
  })
}

// 查询未审合同数量
export function selNoCheckConCount(data) {
  return request({
    url: '/crm/contract/selNoCheckConCount',
    method: 'post',
    data: data
  })
}

// 查询销售额度统计
export function selSaleQuotaCount(data) {
  return request({
    url: '/crm/contract/selSaleQuotaCount',
    method: 'post',
    data: data
  })
}

// 销售漏斗统计，根据商机阶段
export function funnelCount(data) {
  return request({
    url: '/crm/business/funnelCount',
    method: 'post',
    data: data
  })
}